<template>
  <el-container>
    <el-header>
      <el-breadcrumb separator-class="el-icon-arrow-right">
        <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
        <el-breadcrumb-item>商家中心</el-breadcrumb-item>
        <el-breadcrumb-item>图片管理</el-breadcrumb-item>
      </el-breadcrumb>
    </el-header>
    <el-main>
      <el-card>
        <div>
          <h3>厨房照片</h3>
          <el-image
            style="width: 500px; height: 300px"
            :src="imageBaseUrl + imageName.kpicture + '.jpg'"></el-image>
        </div>
        <div>
          <h3>食材采购发票照片</h3>
          <el-image
            style="width: 500px; height: 300px"
            :src="imageBaseUrl + imageName.cpicture + '.jpg'"></el-image>
        </div>
      </el-card>
    </el-main>
  </el-container>
</template>

<script>
export default {
  name: 'Image',
  data () {
    return {
      imageBaseUrl: this.$axios.defaults.baseURL + 'static/image/',
      imageName: {
        kpicture: window.sessionStorage.getItem('kpicture'),
        cpicture: window.sessionStorage.getItem('cpicture')
      }
    }
  }
}
</script>

<style scoped>
.el-header {
  height: 20px!important;
}
</style>
